import http from '@/utils/http.js'

/**
 * 首页数据
 * @returns {*}
 */
export function oneGlance() {
    return http.post('/wordSystemEnStudent/enStuMoveHomeData')
}

/**
 * 单词数据
 * @returns
 */
export function wordData(data) {
    return http.post('/wordSystemEnStudent/enStudentMoveWordData', data)
}

/**
 * 词页面 根据不同类型查询单词（分页）
 * @param {*} params
 * @returns
 */
export function getWordListByType(type, data, params) {
    return http.post(`/wordSystemEnStudent/getWordListByType/${type}`, data, {params})
}

/**
 * 学生自己查询自己的上课记录
 * @param data
 * @returns {*}
 */
export function stuGetCourseList(data) {
    return http.post('/wordSystemEnStudent/stuGetCourseList', data)
}
